package com.sls.web.manager.recharge.service;

import java.util.List;

import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;
import com.sls.web.manager.recharge.pojo.PhoneArea;
import com.sls.web.manager.recharge.querybean.PhoneAreaQuery;

/**
 * @author sxf
 * 
 */
public interface PhoneAreaService {

	/**
	 * 参数:phone,手机号码;province,省份(中文名);city,城市(中文名);type,类型;<br>
	 * 如果不存在,则从站外搜索
	 * 
	 * @param query
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public Pagination<PhoneArea> queryPage(PhoneAreaQuery query,
			UserInfoVO userInfoVO) throws Exception;

	/**
	 * 参数:phone,手机号码;province,省份(中文名);city,城市(中文名);type,类型;<br>
	 * 如果不存在,则从站外搜索
	 * 
	 * @param query
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public List<PhoneArea> queryList(PhoneAreaQuery query, UserInfoVO userInfoVO)
			throws Exception;

	/**
	 * 参数:phone,手机号码;province,省份(中文名);city,城市(中文名);type,类型;<br>
	 * 如果不存在,则从站外搜索
	 * 
	 * @param query
	 * @param userInfoVO
	 * @return
	 * @throws Exception
	 */
	public PhoneArea queryOne(PhoneAreaQuery query, UserInfoVO userInfoVO)
			throws Exception;

	public boolean insert(PhoneArea info, UserInfoVO userInfoVO)
			throws Exception;

	public boolean update(PhoneArea info, UserInfoVO userInfoVO)
			throws Exception;

	public boolean delete(PhoneArea info, UserInfoVO userInfoVO)
			throws Exception;
}
